<template>
  <div class="app">
    <router-view v-slot="{ Component }">
      <component :is="Component" />
    </router-view>
  </div>
</template>

<script setup>
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()

onMounted(() => {
  console.log('App mounted, current route:', router.currentRoute.value)
})
</script>

<style>
.app {
  height: 100vh;
}

body {
  margin: 0;
  padding: 0;
}
</style>
